/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal.js");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.G2LRegister = (function() {

    /**
     * Properties of a G2LRegister.
     * @exports IG2LRegister
     * @interface IG2LRegister
     * @property {number|null} [serverId] G2LRegister serverId
     */

    /**
     * Constructs a new G2LRegister.
     * @exports G2LRegister
     * @classdesc Represents a G2LRegister.
     * @implements IG2LRegister
     * @constructor
     * @param {IG2LRegister=} [properties] Properties to set
     */
    function G2LRegister(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * G2LRegister serverId.
     * @member {number} serverId
     * @memberof G2LRegister
     * @instance
     */
    G2LRegister.prototype.serverId = 0;

    /**
     * Creates a new G2LRegister instance using the specified properties.
     * @function create
     * @memberof G2LRegister
     * @static
     * @param {IG2LRegister=} [properties] Properties to set
     * @returns {G2LRegister} G2LRegister instance
     */
    G2LRegister.create = function create(properties) {
        return new G2LRegister(properties);
    };

    /**
     * Encodes the specified G2LRegister message. Does not implicitly {@link G2LRegister.verify|verify} messages.
     * @function encode
     * @memberof G2LRegister
     * @static
     * @param {IG2LRegister} message G2LRegister message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    G2LRegister.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.serverId != null && Object.hasOwnProperty.call(message, "serverId"))
            writer.uint32(/* id 1, wireType 0 =*/8).int32(message.serverId);
        return writer;
    };

    /**
     * Encodes the specified G2LRegister message, length delimited. Does not implicitly {@link G2LRegister.verify|verify} messages.
     * @function encodeDelimited
     * @memberof G2LRegister
     * @static
     * @param {IG2LRegister} message G2LRegister message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    G2LRegister.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a G2LRegister message from the specified reader or buffer.
     * @function decode
     * @memberof G2LRegister
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {G2LRegister} G2LRegister
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    G2LRegister.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.G2LRegister();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1: {
                    message.serverId = reader.int32();
                    break;
                }
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a G2LRegister message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof G2LRegister
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {G2LRegister} G2LRegister
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    G2LRegister.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a G2LRegister message.
     * @function verify
     * @memberof G2LRegister
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    G2LRegister.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.serverId != null && message.hasOwnProperty("serverId"))
            if (!$util.isInteger(message.serverId))
                return "serverId: integer expected";
        return null;
    };

    /**
     * Creates a G2LRegister message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof G2LRegister
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {G2LRegister} G2LRegister
     */
    G2LRegister.fromObject = function fromObject(object) {
        if (object instanceof $root.G2LRegister)
            return object;
        var message = new $root.G2LRegister();
        if (object.serverId != null)
            message.serverId = object.serverId | 0;
        return message;
    };

    /**
     * Creates a plain object from a G2LRegister message. Also converts values to other types if specified.
     * @function toObject
     * @memberof G2LRegister
     * @static
     * @param {G2LRegister} message G2LRegister
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    G2LRegister.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults)
            object.serverId = 0;
        if (message.serverId != null && message.hasOwnProperty("serverId"))
            object.serverId = message.serverId;
        return object;
    };

    /**
     * Converts this G2LRegister to JSON.
     * @function toJSON
     * @memberof G2LRegister
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    G2LRegister.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    /**
     * Gets the default type url for G2LRegister
     * @function getTypeUrl
     * @memberof G2LRegister
     * @static
     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
     * @returns {string} The default type url
     */
    G2LRegister.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
        if (typeUrlPrefix === undefined) {
            typeUrlPrefix = "type.googleapis.com";
        }
        return typeUrlPrefix + "/G2LRegister";
    };

    return G2LRegister;
})();

$root.L2GRegister = (function() {

    /**
     * Properties of a L2GRegister.
     * @exports IL2GRegister
     * @interface IL2GRegister
     * @property {boolean|null} [success] L2GRegister success
     * @property {number|null} [serverId] L2GRegister serverId
     */

    /**
     * Constructs a new L2GRegister.
     * @exports L2GRegister
     * @classdesc Represents a L2GRegister.
     * @implements IL2GRegister
     * @constructor
     * @param {IL2GRegister=} [properties] Properties to set
     */
    function L2GRegister(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * L2GRegister success.
     * @member {boolean} success
     * @memberof L2GRegister
     * @instance
     */
    L2GRegister.prototype.success = false;

    /**
     * L2GRegister serverId.
     * @member {number} serverId
     * @memberof L2GRegister
     * @instance
     */
    L2GRegister.prototype.serverId = 0;

    /**
     * Creates a new L2GRegister instance using the specified properties.
     * @function create
     * @memberof L2GRegister
     * @static
     * @param {IL2GRegister=} [properties] Properties to set
     * @returns {L2GRegister} L2GRegister instance
     */
    L2GRegister.create = function create(properties) {
        return new L2GRegister(properties);
    };

    /**
     * Encodes the specified L2GRegister message. Does not implicitly {@link L2GRegister.verify|verify} messages.
     * @function encode
     * @memberof L2GRegister
     * @static
     * @param {IL2GRegister} message L2GRegister message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    L2GRegister.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.success != null && Object.hasOwnProperty.call(message, "success"))
            writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success);
        if (message.serverId != null && Object.hasOwnProperty.call(message, "serverId"))
            writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serverId);
        return writer;
    };

    /**
     * Encodes the specified L2GRegister message, length delimited. Does not implicitly {@link L2GRegister.verify|verify} messages.
     * @function encodeDelimited
     * @memberof L2GRegister
     * @static
     * @param {IL2GRegister} message L2GRegister message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    L2GRegister.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a L2GRegister message from the specified reader or buffer.
     * @function decode
     * @memberof L2GRegister
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {L2GRegister} L2GRegister
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    L2GRegister.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.L2GRegister();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1: {
                    message.success = reader.bool();
                    break;
                }
            case 2: {
                    message.serverId = reader.int32();
                    break;
                }
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a L2GRegister message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof L2GRegister
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {L2GRegister} L2GRegister
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    L2GRegister.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a L2GRegister message.
     * @function verify
     * @memberof L2GRegister
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    L2GRegister.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.success != null && message.hasOwnProperty("success"))
            if (typeof message.success !== "boolean")
                return "success: boolean expected";
        if (message.serverId != null && message.hasOwnProperty("serverId"))
            if (!$util.isInteger(message.serverId))
                return "serverId: integer expected";
        return null;
    };

    /**
     * Creates a L2GRegister message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof L2GRegister
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {L2GRegister} L2GRegister
     */
    L2GRegister.fromObject = function fromObject(object) {
        if (object instanceof $root.L2GRegister)
            return object;
        var message = new $root.L2GRegister();
        if (object.success != null)
            message.success = Boolean(object.success);
        if (object.serverId != null)
            message.serverId = object.serverId | 0;
        return message;
    };

    /**
     * Creates a plain object from a L2GRegister message. Also converts values to other types if specified.
     * @function toObject
     * @memberof L2GRegister
     * @static
     * @param {L2GRegister} message L2GRegister
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    L2GRegister.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.success = false;
            object.serverId = 0;
        }
        if (message.success != null && message.hasOwnProperty("success"))
            object.success = message.success;
        if (message.serverId != null && message.hasOwnProperty("serverId"))
            object.serverId = message.serverId;
        return object;
    };

    /**
     * Converts this L2GRegister to JSON.
     * @function toJSON
     * @memberof L2GRegister
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    L2GRegister.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    /**
     * Gets the default type url for L2GRegister
     * @function getTypeUrl
     * @memberof L2GRegister
     * @static
     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
     * @returns {string} The default type url
     */
    L2GRegister.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
        if (typeUrlPrefix === undefined) {
            typeUrlPrefix = "type.googleapis.com";
        }
        return typeUrlPrefix + "/L2GRegister";
    };

    return L2GRegister;
})();

$root.L2GRoleLogin = (function() {

    /**
     * Properties of a L2GRoleLogin.
     * @exports IL2GRoleLogin
     * @interface IL2GRoleLogin
     * @property {number|Long|null} [roleId] L2GRoleLogin roleId
     */

    /**
     * Constructs a new L2GRoleLogin.
     * @exports L2GRoleLogin
     * @classdesc Represents a L2GRoleLogin.
     * @implements IL2GRoleLogin
     * @constructor
     * @param {IL2GRoleLogin=} [properties] Properties to set
     */
    function L2GRoleLogin(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * L2GRoleLogin roleId.
     * @member {number|Long} roleId
     * @memberof L2GRoleLogin
     * @instance
     */
    L2GRoleLogin.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

    /**
     * Creates a new L2GRoleLogin instance using the specified properties.
     * @function create
     * @memberof L2GRoleLogin
     * @static
     * @param {IL2GRoleLogin=} [properties] Properties to set
     * @returns {L2GRoleLogin} L2GRoleLogin instance
     */
    L2GRoleLogin.create = function create(properties) {
        return new L2GRoleLogin(properties);
    };

    /**
     * Encodes the specified L2GRoleLogin message. Does not implicitly {@link L2GRoleLogin.verify|verify} messages.
     * @function encode
     * @memberof L2GRoleLogin
     * @static
     * @param {IL2GRoleLogin} message L2GRoleLogin message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    L2GRoleLogin.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId"))
            writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId);
        return writer;
    };

    /**
     * Encodes the specified L2GRoleLogin message, length delimited. Does not implicitly {@link L2GRoleLogin.verify|verify} messages.
     * @function encodeDelimited
     * @memberof L2GRoleLogin
     * @static
     * @param {IL2GRoleLogin} message L2GRoleLogin message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    L2GRoleLogin.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a L2GRoleLogin message from the specified reader or buffer.
     * @function decode
     * @memberof L2GRoleLogin
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {L2GRoleLogin} L2GRoleLogin
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    L2GRoleLogin.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.L2GRoleLogin();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1: {
                    message.roleId = reader.int64();
                    break;
                }
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a L2GRoleLogin message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof L2GRoleLogin
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {L2GRoleLogin} L2GRoleLogin
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    L2GRoleLogin.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a L2GRoleLogin message.
     * @function verify
     * @memberof L2GRoleLogin
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    L2GRoleLogin.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.roleId != null && message.hasOwnProperty("roleId"))
            if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)))
                return "roleId: integer|Long expected";
        return null;
    };

    /**
     * Creates a L2GRoleLogin message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof L2GRoleLogin
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {L2GRoleLogin} L2GRoleLogin
     */
    L2GRoleLogin.fromObject = function fromObject(object) {
        if (object instanceof $root.L2GRoleLogin)
            return object;
        var message = new $root.L2GRoleLogin();
        if (object.roleId != null)
            if ($util.Long)
                (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false;
            else if (typeof object.roleId === "string")
                message.roleId = parseInt(object.roleId, 10);
            else if (typeof object.roleId === "number")
                message.roleId = object.roleId;
            else if (typeof object.roleId === "object")
                message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber();
        return message;
    };

    /**
     * Creates a plain object from a L2GRoleLogin message. Also converts values to other types if specified.
     * @function toObject
     * @memberof L2GRoleLogin
     * @static
     * @param {L2GRoleLogin} message L2GRoleLogin
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    L2GRoleLogin.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults)
            if ($util.Long) {
                var long = new $util.Long(0, 0, false);
                object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
            } else
                object.roleId = options.longs === String ? "0" : 0;
        if (message.roleId != null && message.hasOwnProperty("roleId"))
            if (typeof message.roleId === "number")
                object.roleId = options.longs === String ? String(message.roleId) : message.roleId;
            else
                object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId;
        return object;
    };

    /**
     * Converts this L2GRoleLogin to JSON.
     * @function toJSON
     * @memberof L2GRoleLogin
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    L2GRoleLogin.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    /**
     * Gets the default type url for L2GRoleLogin
     * @function getTypeUrl
     * @memberof L2GRoleLogin
     * @static
     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
     * @returns {string} The default type url
     */
    L2GRoleLogin.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
        if (typeUrlPrefix === undefined) {
            typeUrlPrefix = "type.googleapis.com";
        }
        return typeUrlPrefix + "/L2GRoleLogin";
    };

    return L2GRoleLogin;
})();

$root.G2LRoleLogin = (function() {

    /**
     * Properties of a G2LRoleLogin.
     * @exports IG2LRoleLogin
     * @interface IG2LRoleLogin
     * @property {number|Long|null} [accountId] G2LRoleLogin accountId
     * @property {number|Long|null} [roleId] G2LRoleLogin roleId
     */

    /**
     * Constructs a new G2LRoleLogin.
     * @exports G2LRoleLogin
     * @classdesc Represents a G2LRoleLogin.
     * @implements IG2LRoleLogin
     * @constructor
     * @param {IG2LRoleLogin=} [properties] Properties to set
     */
    function G2LRoleLogin(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * G2LRoleLogin accountId.
     * @member {number|Long} accountId
     * @memberof G2LRoleLogin
     * @instance
     */
    G2LRoleLogin.prototype.accountId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

    /**
     * G2LRoleLogin roleId.
     * @member {number|Long} roleId
     * @memberof G2LRoleLogin
     * @instance
     */
    G2LRoleLogin.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

    /**
     * Creates a new G2LRoleLogin instance using the specified properties.
     * @function create
     * @memberof G2LRoleLogin
     * @static
     * @param {IG2LRoleLogin=} [properties] Properties to set
     * @returns {G2LRoleLogin} G2LRoleLogin instance
     */
    G2LRoleLogin.create = function create(properties) {
        return new G2LRoleLogin(properties);
    };

    /**
     * Encodes the specified G2LRoleLogin message. Does not implicitly {@link G2LRoleLogin.verify|verify} messages.
     * @function encode
     * @memberof G2LRoleLogin
     * @static
     * @param {IG2LRoleLogin} message G2LRoleLogin message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    G2LRoleLogin.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.accountId != null && Object.hasOwnProperty.call(message, "accountId"))
            writer.uint32(/* id 1, wireType 0 =*/8).int64(message.accountId);
        if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId"))
            writer.uint32(/* id 2, wireType 0 =*/16).int64(message.roleId);
        return writer;
    };

    /**
     * Encodes the specified G2LRoleLogin message, length delimited. Does not implicitly {@link G2LRoleLogin.verify|verify} messages.
     * @function encodeDelimited
     * @memberof G2LRoleLogin
     * @static
     * @param {IG2LRoleLogin} message G2LRoleLogin message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    G2LRoleLogin.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a G2LRoleLogin message from the specified reader or buffer.
     * @function decode
     * @memberof G2LRoleLogin
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {G2LRoleLogin} G2LRoleLogin
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    G2LRoleLogin.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.G2LRoleLogin();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1: {
                    message.accountId = reader.int64();
                    break;
                }
            case 2: {
                    message.roleId = reader.int64();
                    break;
                }
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a G2LRoleLogin message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof G2LRoleLogin
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {G2LRoleLogin} G2LRoleLogin
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    G2LRoleLogin.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a G2LRoleLogin message.
     * @function verify
     * @memberof G2LRoleLogin
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    G2LRoleLogin.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.accountId != null && message.hasOwnProperty("accountId"))
            if (!$util.isInteger(message.accountId) && !(message.accountId && $util.isInteger(message.accountId.low) && $util.isInteger(message.accountId.high)))
                return "accountId: integer|Long expected";
        if (message.roleId != null && message.hasOwnProperty("roleId"))
            if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)))
                return "roleId: integer|Long expected";
        return null;
    };

    /**
     * Creates a G2LRoleLogin message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof G2LRoleLogin
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {G2LRoleLogin} G2LRoleLogin
     */
    G2LRoleLogin.fromObject = function fromObject(object) {
        if (object instanceof $root.G2LRoleLogin)
            return object;
        var message = new $root.G2LRoleLogin();
        if (object.accountId != null)
            if ($util.Long)
                (message.accountId = $util.Long.fromValue(object.accountId)).unsigned = false;
            else if (typeof object.accountId === "string")
                message.accountId = parseInt(object.accountId, 10);
            else if (typeof object.accountId === "number")
                message.accountId = object.accountId;
            else if (typeof object.accountId === "object")
                message.accountId = new $util.LongBits(object.accountId.low >>> 0, object.accountId.high >>> 0).toNumber();
        if (object.roleId != null)
            if ($util.Long)
                (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false;
            else if (typeof object.roleId === "string")
                message.roleId = parseInt(object.roleId, 10);
            else if (typeof object.roleId === "number")
                message.roleId = object.roleId;
            else if (typeof object.roleId === "object")
                message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber();
        return message;
    };

    /**
     * Creates a plain object from a G2LRoleLogin message. Also converts values to other types if specified.
     * @function toObject
     * @memberof G2LRoleLogin
     * @static
     * @param {G2LRoleLogin} message G2LRoleLogin
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    G2LRoleLogin.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            if ($util.Long) {
                var long = new $util.Long(0, 0, false);
                object.accountId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
            } else
                object.accountId = options.longs === String ? "0" : 0;
            if ($util.Long) {
                var long = new $util.Long(0, 0, false);
                object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
            } else
                object.roleId = options.longs === String ? "0" : 0;
        }
        if (message.accountId != null && message.hasOwnProperty("accountId"))
            if (typeof message.accountId === "number")
                object.accountId = options.longs === String ? String(message.accountId) : message.accountId;
            else
                object.accountId = options.longs === String ? $util.Long.prototype.toString.call(message.accountId) : options.longs === Number ? new $util.LongBits(message.accountId.low >>> 0, message.accountId.high >>> 0).toNumber() : message.accountId;
        if (message.roleId != null && message.hasOwnProperty("roleId"))
            if (typeof message.roleId === "number")
                object.roleId = options.longs === String ? String(message.roleId) : message.roleId;
            else
                object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId;
        return object;
    };

    /**
     * Converts this G2LRoleLogin to JSON.
     * @function toJSON
     * @memberof G2LRoleLogin
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    G2LRoleLogin.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    /**
     * Gets the default type url for G2LRoleLogin
     * @function getTypeUrl
     * @memberof G2LRoleLogin
     * @static
     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
     * @returns {string} The default type url
     */
    G2LRoleLogin.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
        if (typeUrlPrefix === undefined) {
            typeUrlPrefix = "type.googleapis.com";
        }
        return typeUrlPrefix + "/G2LRoleLogin";
    };

    return G2LRoleLogin;
})();

$root.L2GClientUpMsg = (function() {

    /**
     * Properties of a L2GClientUpMsg.
     * @exports IL2GClientUpMsg
     * @interface IL2GClientUpMsg
     * @property {number|Long|null} [roleId] L2GClientUpMsg roleId
     * @property {Uint8Array|null} [data] L2GClientUpMsg data
     */

    /**
     * Constructs a new L2GClientUpMsg.
     * @exports L2GClientUpMsg
     * @classdesc Represents a L2GClientUpMsg.
     * @implements IL2GClientUpMsg
     * @constructor
     * @param {IL2GClientUpMsg=} [properties] Properties to set
     */
    function L2GClientUpMsg(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * L2GClientUpMsg roleId.
     * @member {number|Long} roleId
     * @memberof L2GClientUpMsg
     * @instance
     */
    L2GClientUpMsg.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

    /**
     * L2GClientUpMsg data.
     * @member {Uint8Array} data
     * @memberof L2GClientUpMsg
     * @instance
     */
    L2GClientUpMsg.prototype.data = $util.newBuffer([]);

    /**
     * Creates a new L2GClientUpMsg instance using the specified properties.
     * @function create
     * @memberof L2GClientUpMsg
     * @static
     * @param {IL2GClientUpMsg=} [properties] Properties to set
     * @returns {L2GClientUpMsg} L2GClientUpMsg instance
     */
    L2GClientUpMsg.create = function create(properties) {
        return new L2GClientUpMsg(properties);
    };

    /**
     * Encodes the specified L2GClientUpMsg message. Does not implicitly {@link L2GClientUpMsg.verify|verify} messages.
     * @function encode
     * @memberof L2GClientUpMsg
     * @static
     * @param {IL2GClientUpMsg} message L2GClientUpMsg message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    L2GClientUpMsg.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId"))
            writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId);
        if (message.data != null && Object.hasOwnProperty.call(message, "data"))
            writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data);
        return writer;
    };

    /**
     * Encodes the specified L2GClientUpMsg message, length delimited. Does not implicitly {@link L2GClientUpMsg.verify|verify} messages.
     * @function encodeDelimited
     * @memberof L2GClientUpMsg
     * @static
     * @param {IL2GClientUpMsg} message L2GClientUpMsg message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    L2GClientUpMsg.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a L2GClientUpMsg message from the specified reader or buffer.
     * @function decode
     * @memberof L2GClientUpMsg
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {L2GClientUpMsg} L2GClientUpMsg
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    L2GClientUpMsg.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.L2GClientUpMsg();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1: {
                    message.roleId = reader.int64();
                    break;
                }
            case 2: {
                    message.data = reader.bytes();
                    break;
                }
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a L2GClientUpMsg message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof L2GClientUpMsg
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {L2GClientUpMsg} L2GClientUpMsg
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    L2GClientUpMsg.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a L2GClientUpMsg message.
     * @function verify
     * @memberof L2GClientUpMsg
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    L2GClientUpMsg.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.roleId != null && message.hasOwnProperty("roleId"))
            if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)))
                return "roleId: integer|Long expected";
        if (message.data != null && message.hasOwnProperty("data"))
            if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data)))
                return "data: buffer expected";
        return null;
    };

    /**
     * Creates a L2GClientUpMsg message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof L2GClientUpMsg
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {L2GClientUpMsg} L2GClientUpMsg
     */
    L2GClientUpMsg.fromObject = function fromObject(object) {
        if (object instanceof $root.L2GClientUpMsg)
            return object;
        var message = new $root.L2GClientUpMsg();
        if (object.roleId != null)
            if ($util.Long)
                (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false;
            else if (typeof object.roleId === "string")
                message.roleId = parseInt(object.roleId, 10);
            else if (typeof object.roleId === "number")
                message.roleId = object.roleId;
            else if (typeof object.roleId === "object")
                message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber();
        if (object.data != null)
            if (typeof object.data === "string")
                $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0);
            else if (object.data.length >= 0)
                message.data = object.data;
        return message;
    };

    /**
     * Creates a plain object from a L2GClientUpMsg message. Also converts values to other types if specified.
     * @function toObject
     * @memberof L2GClientUpMsg
     * @static
     * @param {L2GClientUpMsg} message L2GClientUpMsg
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    L2GClientUpMsg.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            if ($util.Long) {
                var long = new $util.Long(0, 0, false);
                object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
            } else
                object.roleId = options.longs === String ? "0" : 0;
            if (options.bytes === String)
                object.data = "";
            else {
                object.data = [];
                if (options.bytes !== Array)
                    object.data = $util.newBuffer(object.data);
            }
        }
        if (message.roleId != null && message.hasOwnProperty("roleId"))
            if (typeof message.roleId === "number")
                object.roleId = options.longs === String ? String(message.roleId) : message.roleId;
            else
                object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId;
        if (message.data != null && message.hasOwnProperty("data"))
            object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data;
        return object;
    };

    /**
     * Converts this L2GClientUpMsg to JSON.
     * @function toJSON
     * @memberof L2GClientUpMsg
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    L2GClientUpMsg.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    /**
     * Gets the default type url for L2GClientUpMsg
     * @function getTypeUrl
     * @memberof L2GClientUpMsg
     * @static
     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
     * @returns {string} The default type url
     */
    L2GClientUpMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
        if (typeUrlPrefix === undefined) {
            typeUrlPrefix = "type.googleapis.com";
        }
        return typeUrlPrefix + "/L2GClientUpMsg";
    };

    return L2GClientUpMsg;
})();

$root.G2LClientDownMsg = (function() {

    /**
     * Properties of a G2LClientDownMsg.
     * @exports IG2LClientDownMsg
     * @interface IG2LClientDownMsg
     * @property {number|Long|null} [accountId] G2LClientDownMsg accountId
     * @property {Uint8Array|null} [data] G2LClientDownMsg data
     */

    /**
     * Constructs a new G2LClientDownMsg.
     * @exports G2LClientDownMsg
     * @classdesc Represents a G2LClientDownMsg.
     * @implements IG2LClientDownMsg
     * @constructor
     * @param {IG2LClientDownMsg=} [properties] Properties to set
     */
    function G2LClientDownMsg(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * G2LClientDownMsg accountId.
     * @member {number|Long} accountId
     * @memberof G2LClientDownMsg
     * @instance
     */
    G2LClientDownMsg.prototype.accountId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;

    /**
     * G2LClientDownMsg data.
     * @member {Uint8Array} data
     * @memberof G2LClientDownMsg
     * @instance
     */
    G2LClientDownMsg.prototype.data = $util.newBuffer([]);

    /**
     * Creates a new G2LClientDownMsg instance using the specified properties.
     * @function create
     * @memberof G2LClientDownMsg
     * @static
     * @param {IG2LClientDownMsg=} [properties] Properties to set
     * @returns {G2LClientDownMsg} G2LClientDownMsg instance
     */
    G2LClientDownMsg.create = function create(properties) {
        return new G2LClientDownMsg(properties);
    };

    /**
     * Encodes the specified G2LClientDownMsg message. Does not implicitly {@link G2LClientDownMsg.verify|verify} messages.
     * @function encode
     * @memberof G2LClientDownMsg
     * @static
     * @param {IG2LClientDownMsg} message G2LClientDownMsg message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    G2LClientDownMsg.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.accountId != null && Object.hasOwnProperty.call(message, "accountId"))
            writer.uint32(/* id 1, wireType 0 =*/8).int64(message.accountId);
        if (message.data != null && Object.hasOwnProperty.call(message, "data"))
            writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data);
        return writer;
    };

    /**
     * Encodes the specified G2LClientDownMsg message, length delimited. Does not implicitly {@link G2LClientDownMsg.verify|verify} messages.
     * @function encodeDelimited
     * @memberof G2LClientDownMsg
     * @static
     * @param {IG2LClientDownMsg} message G2LClientDownMsg message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    G2LClientDownMsg.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes a G2LClientDownMsg message from the specified reader or buffer.
     * @function decode
     * @memberof G2LClientDownMsg
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {G2LClientDownMsg} G2LClientDownMsg
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    G2LClientDownMsg.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.G2LClientDownMsg();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1: {
                    message.accountId = reader.int64();
                    break;
                }
            case 2: {
                    message.data = reader.bytes();
                    break;
                }
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes a G2LClientDownMsg message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof G2LClientDownMsg
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {G2LClientDownMsg} G2LClientDownMsg
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    G2LClientDownMsg.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies a G2LClientDownMsg message.
     * @function verify
     * @memberof G2LClientDownMsg
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    G2LClientDownMsg.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.accountId != null && message.hasOwnProperty("accountId"))
            if (!$util.isInteger(message.accountId) && !(message.accountId && $util.isInteger(message.accountId.low) && $util.isInteger(message.accountId.high)))
                return "accountId: integer|Long expected";
        if (message.data != null && message.hasOwnProperty("data"))
            if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data)))
                return "data: buffer expected";
        return null;
    };

    /**
     * Creates a G2LClientDownMsg message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof G2LClientDownMsg
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {G2LClientDownMsg} G2LClientDownMsg
     */
    G2LClientDownMsg.fromObject = function fromObject(object) {
        if (object instanceof $root.G2LClientDownMsg)
            return object;
        var message = new $root.G2LClientDownMsg();
        if (object.accountId != null)
            if ($util.Long)
                (message.accountId = $util.Long.fromValue(object.accountId)).unsigned = false;
            else if (typeof object.accountId === "string")
                message.accountId = parseInt(object.accountId, 10);
            else if (typeof object.accountId === "number")
                message.accountId = object.accountId;
            else if (typeof object.accountId === "object")
                message.accountId = new $util.LongBits(object.accountId.low >>> 0, object.accountId.high >>> 0).toNumber();
        if (object.data != null)
            if (typeof object.data === "string")
                $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0);
            else if (object.data.length >= 0)
                message.data = object.data;
        return message;
    };

    /**
     * Creates a plain object from a G2LClientDownMsg message. Also converts values to other types if specified.
     * @function toObject
     * @memberof G2LClientDownMsg
     * @static
     * @param {G2LClientDownMsg} message G2LClientDownMsg
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    G2LClientDownMsg.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            if ($util.Long) {
                var long = new $util.Long(0, 0, false);
                object.accountId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
            } else
                object.accountId = options.longs === String ? "0" : 0;
            if (options.bytes === String)
                object.data = "";
            else {
                object.data = [];
                if (options.bytes !== Array)
                    object.data = $util.newBuffer(object.data);
            }
        }
        if (message.accountId != null && message.hasOwnProperty("accountId"))
            if (typeof message.accountId === "number")
                object.accountId = options.longs === String ? String(message.accountId) : message.accountId;
            else
                object.accountId = options.longs === String ? $util.Long.prototype.toString.call(message.accountId) : options.longs === Number ? new $util.LongBits(message.accountId.low >>> 0, message.accountId.high >>> 0).toNumber() : message.accountId;
        if (message.data != null && message.hasOwnProperty("data"))
            object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data;
        return object;
    };

    /**
     * Converts this G2LClientDownMsg to JSON.
     * @function toJSON
     * @memberof G2LClientDownMsg
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    G2LClientDownMsg.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    /**
     * Gets the default type url for G2LClientDownMsg
     * @function getTypeUrl
     * @memberof G2LClientDownMsg
     * @static
     * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
     * @returns {string} The default type url
     */
    G2LClientDownMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
        if (typeUrlPrefix === undefined) {
            typeUrlPrefix = "type.googleapis.com";
        }
        return typeUrlPrefix + "/G2LClientDownMsg";
    };

    return G2LClientDownMsg;
})();

module.exports = $root;
